<div class="fly-home" style="background-image: url();">
    <img src="__ROOT__/<?php echo $res[0]['face']  ?>">
    <h1>
        <?php echo $res[0]['nikename']; ?>
        <?php if ($res[0]['sex']=='女'){ ?>
            <i class="iconfont     icon-nv    "></i>
        <?php }else if($res[0]['sex']=='男'){ ?>
            <i class="iconfont     icon-nan    "></i>
           <?php } ?>      
    </h1>
    <div class="layui-main">
        <p style="display: inline-block; max-width: 800px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #999; margin-top: 10px;">
            （ <?php echo $res[0]['resume'] ?> ）
        </p>
    </div>  
</div>





<div class="main layui-clear">
    <div class="fly-main layui-clear">
        <div class="home-nav">
            <a href="">
                主页
            </a>
            <!--<a href="">求解</a>-->
        </div>
        <div class="home-left">
            <h2>
                最近发表的求解
            </h2>
            <ul class="jie-row">
                <?php if (empty($que)){ ?>
                    <li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                    <i style="font-size:14px;">
                        没有发表任何求解
                    </i>
                </li>
                <?php  }else{ ?>
                    <?php foreach ($que as  $v) { ?>
                        <li>
                            <a href="{:U('home/que/index')}/id/<?php echo $v['id'] ?>" >
                               <?php echo $v['title']; ?>
                            </a>
                            <i>
                                <?php echo $v['create_time']; ?>
                            </i>
                            <em>
                                <?php echo $v['view_num']; ?>阅/<?php echo $v['answer_num']; ?>答
                            </em>
                        </li>
                    <?php } ?>

                    <?php } ?>
                
                
            </ul>
            <h2 style="margin-top:30px;">
                最近的回答
            </h2>
            <ul class="home-jieda">
                <?php foreach ($ans as $v) { ?>
                    <?php  if (!empty($v['content'])) { ?>
                        <li>
                            <p>
                                <span>
                                    <?php echo $v['create_time']; ?>
                                </span>
                                在
                                <a href="{:U('home/que/index')}/id/<?php echo $v['id']?>" target="_blank">
                                    <?php echo $v['title']; ?>
                                </a>
                                中回答：
                            </p>
                            <div class="home-dacontent">
                                <?php echo $v['content']; ?>
                            </div>
                        </li>
                    <?php }else{ ?>
                        <li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;">
                            <span>
                                没有回答任何问题
                            </span>
                        </li>
                       <?php } ?>
                <?php }?>
            </ul>
        </div>
        <div class="home-right">
            <ul class="home-info">
                <li>
                    <i class="iconfont icon-zuichun">
                    </i>
                    拥有飞吻：
                    <span style="color: #FF7200;">
                        <?php echo $res[0]['kiss'] ?>
                    </span>
                </li>
                <li>
                    <i class="iconfont icon-shijian">
                    </i>
                    加入时间：
                    <span>
                        <?php echo $res[0]['create_time'] ?>
                    </span>
                </li>
                <li>
                    <i class="iconfont icon-chengshi">
                    </i>
                    城市：
                    <span>
                         <?php echo $res[0]['city'] ?>
                    </span>
                </li>
            </ul>
            <!-- layer-300*250 -->
            <ins class="adsbygoogle" style="display:inline-block;width:300px;height:250px"
            data-ad-client="ca-pub-6111334333458862" data-ad-slot="2182025432">
            </ins>
        </div>
    </div>
</div>